import psutil
import platform

from flask import render_template, request, jsonify, __version__

from app.panel import panel_bp
from app.extensions import csrf, db


@csrf.exempt
@panel_bp.route('/', methods=['GET', 'POST'])
def index():
    base_data = list(platform.uname())
    base_data.append(platform.python_version())
    base_data.append(platform.architecture()[0])
    base_data.append(__version__)
    return render_template('panel/index.html', base_data=base_data)
